local protobuf = require "protobuf/protobuf"
module('BaseMsg_pb')

EMSGENTITY = protobuf.EnumDescriptor();
EMSGENTITY_ENTITY_SYS_SVR_ENUM = protobuf.EnumValueDescriptor();
EMSGENTITY_ENTITY_OP_SVR_ENUM = protobuf.EnumValueDescriptor();
EMSGENTITY_ENTITY_PLANE_SVR_ENUM = protobuf.EnumValueDescriptor();
EMSGENTITY_ENTITY_WEB_SVR_ENUM = protobuf.EnumValueDescriptor();
EMSGENTITY_ENTITY_LOG_SVR_ENUM = protobuf.EnumValueDescriptor();
EMSGENTITY_ENTITY_PF_SVR_ENUM = protobuf.EnumValueDescriptor();
EMSGENTITY_ENTITY_GATE_SVR_ENUM = protobuf.EnumValueDescriptor();
EMSGENTITY_ENTITY_LINE_SVR_ENUM = protobuf.EnumValueDescriptor();
EMSGENTITY_ENTITY_GAME_CLT_ENUM = protobuf.EnumValueDescriptor();
EMSGENTITY_ENTITY_OP_CLT_ENUM = protobuf.EnumValueDescriptor();

EMSGENTITYRELATION = protobuf.EnumDescriptor();
EMSGENTITYRELATION_RELATION_BEGIN_ENUM = protobuf.EnumValueDescriptor();
EMSGENTITYRELATION_RELATION_C_S_ENUM = protobuf.EnumValueDescriptor();
EMSGENTITYRELATION_RELATION_S_S_ENUM = protobuf.EnumValueDescriptor();
EMSGENTITYRELATION_RELATION_END_ENUM = protobuf.EnumValueDescriptor();

EMODULETYPE = protobuf.EnumDescriptor();
EMODULETYPE_MODULE_CORE_ENUM = protobuf.EnumValueDescriptor();
EMODULETYPE_MODULE_WEAPON_ENUM = protobuf.EnumValueDescriptor();
EMODULETYPE_MODULE_EQUIP_ENUM = protobuf.EnumValueDescriptor();
EMODULETYPE_MODULE_LOGIN_ENUM = protobuf.EnumValueDescriptor();
EMODULETYPE_MODULE_PF_ENUM = protobuf.EnumValueDescriptor();
EMODULETYPE_MODULE_FIGHT_ENUM = protobuf.EnumValueDescriptor();
EMODULETYPE_MODULE_MAP_ENUM = protobuf.EnumValueDescriptor();
EMODULETYPE_MODULE_ROLE_ENUM = protobuf.EnumValueDescriptor();
EMODULETYPE_MODULE_JINGMAI_ENUM = protobuf.EnumValueDescriptor();
EMODULETYPE_MODULE_PVP_ENUM = protobuf.EnumValueDescriptor();
EMODULETYPE_MODULE_TASK_ENUM = protobuf.EnumValueDescriptor();
EMODULETYPE_MODULE_FUBEN_ENUM = protobuf.EnumValueDescriptor();
EMODULETYPE_MODULE_GANG_ENUM = protobuf.EnumValueDescriptor();
EMODULETYPE_MODULE_SYSMANAGER_ENUM = protobuf.EnumValueDescriptor();
EMODULETYPE_MODULE_ACTIVITY_ENUM = protobuf.EnumValueDescriptor();
EMODULETYPE_MODULE_TOP_ENUM = protobuf.EnumValueDescriptor();
EMODULETYPE_MODULE_SHOP_ENUM = protobuf.EnumValueDescriptor();
EMODULETYPE_MODULE_MATE_ENUM = protobuf.EnumValueDescriptor();
EMODULETYPE_MODULE_ARENA_ENUM = protobuf.EnumValueDescriptor();
EMODULETYPE_MODULE_NAKEDCAR_ENUM = protobuf.EnumValueDescriptor();
EMODULETYPE_MODULE_CAMP_ENUM = protobuf.EnumValueDescriptor();
EMODULETYPE_MODULE_MAIL_ENUM = protobuf.EnumValueDescriptor();
EMODULETYPE_MODULE_ITEM_ENUM = protobuf.EnumValueDescriptor();
EMODULETYPE_MODULE_PAINT_ENUM = protobuf.EnumValueDescriptor();
EMODULETYPE_MODULE_FESSION_ENUM = protobuf.EnumValueDescriptor();
EMODULETYPE_MODULE_HEROPOSTS_ENUM = protobuf.EnumValueDescriptor();
EMODULETYPE_MODULE_RUSHPARK_ENUM = protobuf.EnumValueDescriptor();
EMODULETYPE_MODULE_MISC_ENUM = protobuf.EnumValueDescriptor();
EMODULETYPE_MODULE_GM_ENUM = protobuf.EnumValueDescriptor();
EMODULETYPE_MODULE_FRIENDS_ENUM = protobuf.EnumValueDescriptor();
EMODULETYPE_MODULE_LANFIGHT_ENUM = protobuf.EnumValueDescriptor();
EMODULETYPE_MODULE_PVPROOM_ENUM = protobuf.EnumValueDescriptor();
EMODULETYPE_MODULE_END_ENUM = protobuf.EnumValueDescriptor();

ESENDTYPE = protobuf.EnumDescriptor();
ESENDTYPE_SEND_P2P_ENUM = protobuf.EnumValueDescriptor();
ESENDTYPE_SEND_P2MULTI_ENUM = protobuf.EnumValueDescriptor();
ESENDTYPE_SEND_P2MAP_ENUM = protobuf.EnumValueDescriptor();
ESENDTYPE_SEND_P2CAMP_ENUM = protobuf.EnumValueDescriptor();
ESENDTYPE_SEND_P2LINESVR_ENUM = protobuf.EnumValueDescriptor();
ESENDTYPE_SEND_P2PLANESVR_ENUM = protobuf.EnumValueDescriptor();

ECMDTYPE = protobuf.EnumDescriptor();
ECMDTYPE_CMD_NULL_ENUM = protobuf.EnumValueDescriptor();
ECMDTYPE_CMD_REGKEY_ENUM = protobuf.EnumValueDescriptor();
ECMDTYPE_CMD_START_ENUM = protobuf.EnumValueDescriptor();
ECMDTYPE_CMD_REGSERVER_ENUM = protobuf.EnumValueDescriptor();
ECMDTYPE_CMD_KEEPALIVE_ENUM = protobuf.EnumValueDescriptor();

EOPFLAG = protobuf.EnumDescriptor();
EOPFLAG_FLAG_EXCLUDE_SELF_ENUM = protobuf.EnumValueDescriptor();

MSGHEAD = protobuf.Descriptor();
MSGHEAD_MSGID_FIELD = protobuf.FieldDescriptor();
MSGHEAD_SRCENTITY_FIELD = protobuf.FieldDescriptor();
MSGHEAD_SRCID_FIELD = protobuf.FieldDescriptor();
MSGHEAD_DSTENTITY_FIELD = protobuf.FieldDescriptor();
MSGHEAD_DSTID_FIELD = protobuf.FieldDescriptor();
MSGHEAD_TIMESTAMP_FIELD = protobuf.FieldDescriptor();
MSGHEAD_SENDTYPE_FIELD = protobuf.FieldDescriptor();
MSGHEAD_CMDTYPE_FIELD = protobuf.FieldDescriptor();
MSGHEAD_OPFLAG_FIELD = protobuf.FieldDescriptor();
MSGHEAD_ROLEID_FIELD = protobuf.FieldDescriptor();
MSGHEAD_MSGSEQ_FIELD = protobuf.FieldDescriptor();
MSGHEAD_OPTLENGTH_FIELD = protobuf.FieldDescriptor();
MSGHEAD_OPTION_FIELD = protobuf.FieldDescriptor();

EMSGENTITY_ENTITY_SYS_SVR_ENUM.name = "ENTITY_SYS_SVR"
EMSGENTITY_ENTITY_SYS_SVR_ENUM.index = 0
EMSGENTITY_ENTITY_SYS_SVR_ENUM.number = 1

EMSGENTITY_ENTITY_OP_SVR_ENUM.name = "ENTITY_OP_SVR"
EMSGENTITY_ENTITY_OP_SVR_ENUM.index = 1
EMSGENTITY_ENTITY_OP_SVR_ENUM.number = 2

EMSGENTITY_ENTITY_PLANE_SVR_ENUM.name = "ENTITY_PLANE_SVR"
EMSGENTITY_ENTITY_PLANE_SVR_ENUM.index = 2
EMSGENTITY_ENTITY_PLANE_SVR_ENUM.number = 6

EMSGENTITY_ENTITY_WEB_SVR_ENUM.name = "ENTITY_WEB_SVR"
EMSGENTITY_ENTITY_WEB_SVR_ENUM.index = 3
EMSGENTITY_ENTITY_WEB_SVR_ENUM.number = 7

EMSGENTITY_ENTITY_LOG_SVR_ENUM.name = "ENTITY_LOG_SVR"
EMSGENTITY_ENTITY_LOG_SVR_ENUM.index = 4
EMSGENTITY_ENTITY_LOG_SVR_ENUM.number = 10

EMSGENTITY_ENTITY_PF_SVR_ENUM.name = "ENTITY_PF_SVR"
EMSGENTITY_ENTITY_PF_SVR_ENUM.index = 5
EMSGENTITY_ENTITY_PF_SVR_ENUM.number = 11

EMSGENTITY_ENTITY_GATE_SVR_ENUM.name = "ENTITY_GATE_SVR"
EMSGENTITY_ENTITY_GATE_SVR_ENUM.index = 6
EMSGENTITY_ENTITY_GATE_SVR_ENUM.number = 12

EMSGENTITY_ENTITY_LINE_SVR_ENUM.name = "ENTITY_LINE_SVR"
EMSGENTITY_ENTITY_LINE_SVR_ENUM.index = 7
EMSGENTITY_ENTITY_LINE_SVR_ENUM.number = 13

EMSGENTITY_ENTITY_GAME_CLT_ENUM.name = "ENTITY_GAME_CLT"
EMSGENTITY_ENTITY_GAME_CLT_ENUM.index = 8
EMSGENTITY_ENTITY_GAME_CLT_ENUM.number = 21

EMSGENTITY_ENTITY_OP_CLT_ENUM.name = "ENTITY_OP_CLT"
EMSGENTITY_ENTITY_OP_CLT_ENUM.index = 9
EMSGENTITY_ENTITY_OP_CLT_ENUM.number = 22

EMSGENTITY.name = "EMsgEntity"
EMSGENTITY.full_name = ".EMsgEntity"
EMSGENTITY.values = {EMSGENTITY_ENTITY_SYS_SVR_ENUM,EMSGENTITY_ENTITY_OP_SVR_ENUM,EMSGENTITY_ENTITY_PLANE_SVR_ENUM,EMSGENTITY_ENTITY_WEB_SVR_ENUM,EMSGENTITY_ENTITY_LOG_SVR_ENUM,EMSGENTITY_ENTITY_PF_SVR_ENUM,EMSGENTITY_ENTITY_GATE_SVR_ENUM,EMSGENTITY_ENTITY_LINE_SVR_ENUM,EMSGENTITY_ENTITY_GAME_CLT_ENUM,EMSGENTITY_ENTITY_OP_CLT_ENUM}

EMSGENTITYRELATION_RELATION_BEGIN_ENUM.name = "RELATION_BEGIN"
EMSGENTITYRELATION_RELATION_BEGIN_ENUM.index = 0
EMSGENTITYRELATION_RELATION_BEGIN_ENUM.number = 0

EMSGENTITYRELATION_RELATION_C_S_ENUM.name = "RELATION_C_S"
EMSGENTITYRELATION_RELATION_C_S_ENUM.index = 1
EMSGENTITYRELATION_RELATION_C_S_ENUM.number = 1

EMSGENTITYRELATION_RELATION_S_S_ENUM.name = "RELATION_S_S"
EMSGENTITYRELATION_RELATION_S_S_ENUM.index = 2
EMSGENTITYRELATION_RELATION_S_S_ENUM.number = 8

EMSGENTITYRELATION_RELATION_END_ENUM.name = "RELATION_END"
EMSGENTITYRELATION_RELATION_END_ENUM.index = 3
EMSGENTITYRELATION_RELATION_END_ENUM.number = 15

EMSGENTITYRELATION.name = "EMsgEntityRelation"
EMSGENTITYRELATION.full_name = ".EMsgEntityRelation"
EMSGENTITYRELATION.values = {EMSGENTITYRELATION_RELATION_BEGIN_ENUM,EMSGENTITYRELATION_RELATION_C_S_ENUM,EMSGENTITYRELATION_RELATION_S_S_ENUM,EMSGENTITYRELATION_RELATION_END_ENUM}

EMODULETYPE_MODULE_CORE_ENUM.name = "MODULE_CORE"
EMODULETYPE_MODULE_CORE_ENUM.index = 0
EMODULETYPE_MODULE_CORE_ENUM.number = 1

EMODULETYPE_MODULE_WEAPON_ENUM.name = "MODULE_WEAPON"
EMODULETYPE_MODULE_WEAPON_ENUM.index = 1
EMODULETYPE_MODULE_WEAPON_ENUM.number = 2

EMODULETYPE_MODULE_EQUIP_ENUM.name = "MODULE_EQUIP"
EMODULETYPE_MODULE_EQUIP_ENUM.index = 2
EMODULETYPE_MODULE_EQUIP_ENUM.number = 3

EMODULETYPE_MODULE_LOGIN_ENUM.name = "MODULE_LOGIN"
EMODULETYPE_MODULE_LOGIN_ENUM.index = 3
EMODULETYPE_MODULE_LOGIN_ENUM.number = 4

EMODULETYPE_MODULE_PF_ENUM.name = "MODULE_PF"
EMODULETYPE_MODULE_PF_ENUM.index = 4
EMODULETYPE_MODULE_PF_ENUM.number = 5

EMODULETYPE_MODULE_FIGHT_ENUM.name = "MODULE_FIGHT"
EMODULETYPE_MODULE_FIGHT_ENUM.index = 5
EMODULETYPE_MODULE_FIGHT_ENUM.number = 6

EMODULETYPE_MODULE_MAP_ENUM.name = "MODULE_MAP"
EMODULETYPE_MODULE_MAP_ENUM.index = 6
EMODULETYPE_MODULE_MAP_ENUM.number = 7

EMODULETYPE_MODULE_ROLE_ENUM.name = "MODULE_ROLE"
EMODULETYPE_MODULE_ROLE_ENUM.index = 7
EMODULETYPE_MODULE_ROLE_ENUM.number = 8

EMODULETYPE_MODULE_JINGMAI_ENUM.name = "MODULE_JINGMAI"
EMODULETYPE_MODULE_JINGMAI_ENUM.index = 8
EMODULETYPE_MODULE_JINGMAI_ENUM.number = 9

EMODULETYPE_MODULE_PVP_ENUM.name = "MODULE_PVP"
EMODULETYPE_MODULE_PVP_ENUM.index = 9
EMODULETYPE_MODULE_PVP_ENUM.number = 10

EMODULETYPE_MODULE_TASK_ENUM.name = "MODULE_TASK"
EMODULETYPE_MODULE_TASK_ENUM.index = 10
EMODULETYPE_MODULE_TASK_ENUM.number = 11

EMODULETYPE_MODULE_FUBEN_ENUM.name = "MODULE_FUBEN"
EMODULETYPE_MODULE_FUBEN_ENUM.index = 11
EMODULETYPE_MODULE_FUBEN_ENUM.number = 12

EMODULETYPE_MODULE_GANG_ENUM.name = "MODULE_GANG"
EMODULETYPE_MODULE_GANG_ENUM.index = 12
EMODULETYPE_MODULE_GANG_ENUM.number = 13

EMODULETYPE_MODULE_SYSMANAGER_ENUM.name = "MODULE_SYSMANAGER"
EMODULETYPE_MODULE_SYSMANAGER_ENUM.index = 13
EMODULETYPE_MODULE_SYSMANAGER_ENUM.number = 14

EMODULETYPE_MODULE_ACTIVITY_ENUM.name = "MODULE_ACTIVITY"
EMODULETYPE_MODULE_ACTIVITY_ENUM.index = 14
EMODULETYPE_MODULE_ACTIVITY_ENUM.number = 15

EMODULETYPE_MODULE_TOP_ENUM.name = "MODULE_TOP"
EMODULETYPE_MODULE_TOP_ENUM.index = 15
EMODULETYPE_MODULE_TOP_ENUM.number = 16

EMODULETYPE_MODULE_SHOP_ENUM.name = "MODULE_SHOP"
EMODULETYPE_MODULE_SHOP_ENUM.index = 16
EMODULETYPE_MODULE_SHOP_ENUM.number = 17

EMODULETYPE_MODULE_MATE_ENUM.name = "MODULE_MATE"
EMODULETYPE_MODULE_MATE_ENUM.index = 17
EMODULETYPE_MODULE_MATE_ENUM.number = 18

EMODULETYPE_MODULE_ARENA_ENUM.name = "MODULE_ARENA"
EMODULETYPE_MODULE_ARENA_ENUM.index = 18
EMODULETYPE_MODULE_ARENA_ENUM.number = 19

EMODULETYPE_MODULE_NAKEDCAR_ENUM.name = "MODULE_NAKEDCAR"
EMODULETYPE_MODULE_NAKEDCAR_ENUM.index = 19
EMODULETYPE_MODULE_NAKEDCAR_ENUM.number = 20

EMODULETYPE_MODULE_CAMP_ENUM.name = "MODULE_CAMP"
EMODULETYPE_MODULE_CAMP_ENUM.index = 20
EMODULETYPE_MODULE_CAMP_ENUM.number = 21

EMODULETYPE_MODULE_MAIL_ENUM.name = "MODULE_MAIL"
EMODULETYPE_MODULE_MAIL_ENUM.index = 21
EMODULETYPE_MODULE_MAIL_ENUM.number = 22

EMODULETYPE_MODULE_ITEM_ENUM.name = "MODULE_ITEM"
EMODULETYPE_MODULE_ITEM_ENUM.index = 22
EMODULETYPE_MODULE_ITEM_ENUM.number = 23

EMODULETYPE_MODULE_PAINT_ENUM.name = "MODULE_PAINT"
EMODULETYPE_MODULE_PAINT_ENUM.index = 23
EMODULETYPE_MODULE_PAINT_ENUM.number = 24

EMODULETYPE_MODULE_FESSION_ENUM.name = "MODULE_FESSION"
EMODULETYPE_MODULE_FESSION_ENUM.index = 24
EMODULETYPE_MODULE_FESSION_ENUM.number = 25

EMODULETYPE_MODULE_HEROPOSTS_ENUM.name = "MODULE_HEROPOSTS"
EMODULETYPE_MODULE_HEROPOSTS_ENUM.index = 25
EMODULETYPE_MODULE_HEROPOSTS_ENUM.number = 26

EMODULETYPE_MODULE_RUSHPARK_ENUM.name = "MODULE_RUSHPARK"
EMODULETYPE_MODULE_RUSHPARK_ENUM.index = 26
EMODULETYPE_MODULE_RUSHPARK_ENUM.number = 27

EMODULETYPE_MODULE_MISC_ENUM.name = "MODULE_MISC"
EMODULETYPE_MODULE_MISC_ENUM.index = 27
EMODULETYPE_MODULE_MISC_ENUM.number = 28

EMODULETYPE_MODULE_GM_ENUM.name = "MODULE_GM"
EMODULETYPE_MODULE_GM_ENUM.index = 28
EMODULETYPE_MODULE_GM_ENUM.number = 29

EMODULETYPE_MODULE_FRIENDS_ENUM.name = "MODULE_FRIENDS"
EMODULETYPE_MODULE_FRIENDS_ENUM.index = 29
EMODULETYPE_MODULE_FRIENDS_ENUM.number = 30

EMODULETYPE_MODULE_LANFIGHT_ENUM.name = "MODULE_LANFIGHT"
EMODULETYPE_MODULE_LANFIGHT_ENUM.index = 30
EMODULETYPE_MODULE_LANFIGHT_ENUM.number = 31

EMODULETYPE_MODULE_PVPROOM_ENUM.name = "MODULE_PVPROOM"
EMODULETYPE_MODULE_PVPROOM_ENUM.index = 31
EMODULETYPE_MODULE_PVPROOM_ENUM.number = 32

EMODULETYPE_MODULE_END_ENUM.name = "MODULE_END"
EMODULETYPE_MODULE_END_ENUM.index = 32
EMODULETYPE_MODULE_END_ENUM.number = 33

EMODULETYPE.name = "EModuleType"
EMODULETYPE.full_name = ".EModuleType"
EMODULETYPE.values = {EMODULETYPE_MODULE_CORE_ENUM,EMODULETYPE_MODULE_WEAPON_ENUM,EMODULETYPE_MODULE_EQUIP_ENUM,EMODULETYPE_MODULE_LOGIN_ENUM,EMODULETYPE_MODULE_PF_ENUM,EMODULETYPE_MODULE_FIGHT_ENUM,EMODULETYPE_MODULE_MAP_ENUM,EMODULETYPE_MODULE_ROLE_ENUM,EMODULETYPE_MODULE_JINGMAI_ENUM,EMODULETYPE_MODULE_PVP_ENUM,EMODULETYPE_MODULE_TASK_ENUM,EMODULETYPE_MODULE_FUBEN_ENUM,EMODULETYPE_MODULE_GANG_ENUM,EMODULETYPE_MODULE_SYSMANAGER_ENUM,EMODULETYPE_MODULE_ACTIVITY_ENUM,EMODULETYPE_MODULE_TOP_ENUM,EMODULETYPE_MODULE_SHOP_ENUM,EMODULETYPE_MODULE_MATE_ENUM,EMODULETYPE_MODULE_ARENA_ENUM,EMODULETYPE_MODULE_NAKEDCAR_ENUM,EMODULETYPE_MODULE_CAMP_ENUM,EMODULETYPE_MODULE_MAIL_ENUM,EMODULETYPE_MODULE_ITEM_ENUM,EMODULETYPE_MODULE_PAINT_ENUM,EMODULETYPE_MODULE_FESSION_ENUM,EMODULETYPE_MODULE_HEROPOSTS_ENUM,EMODULETYPE_MODULE_RUSHPARK_ENUM,EMODULETYPE_MODULE_MISC_ENUM,EMODULETYPE_MODULE_GM_ENUM,EMODULETYPE_MODULE_FRIENDS_ENUM,EMODULETYPE_MODULE_LANFIGHT_ENUM,EMODULETYPE_MODULE_PVPROOM_ENUM,EMODULETYPE_MODULE_END_ENUM}

ESENDTYPE_SEND_P2P_ENUM.name = "SEND_P2P"
ESENDTYPE_SEND_P2P_ENUM.index = 0
ESENDTYPE_SEND_P2P_ENUM.number = 0

ESENDTYPE_SEND_P2MULTI_ENUM.name = "SEND_P2MULTI"
ESENDTYPE_SEND_P2MULTI_ENUM.index = 1
ESENDTYPE_SEND_P2MULTI_ENUM.number = 1

ESENDTYPE_SEND_P2MAP_ENUM.name = "SEND_P2MAP"
ESENDTYPE_SEND_P2MAP_ENUM.index = 2
ESENDTYPE_SEND_P2MAP_ENUM.number = 2

ESENDTYPE_SEND_P2CAMP_ENUM.name = "SEND_P2CAMP"
ESENDTYPE_SEND_P2CAMP_ENUM.index = 3
ESENDTYPE_SEND_P2CAMP_ENUM.number = 3

ESENDTYPE_SEND_P2LINESVR_ENUM.name = "SEND_P2LINESVR"
ESENDTYPE_SEND_P2LINESVR_ENUM.index = 4
ESENDTYPE_SEND_P2LINESVR_ENUM.number = 10

ESENDTYPE_SEND_P2PLANESVR_ENUM.name = "SEND_P2PLANESVR"
ESENDTYPE_SEND_P2PLANESVR_ENUM.index = 5
ESENDTYPE_SEND_P2PLANESVR_ENUM.number = 11

ESENDTYPE.name = "ESendType"
ESENDTYPE.full_name = ".ESendType"
ESENDTYPE.values = {ESENDTYPE_SEND_P2P_ENUM,ESENDTYPE_SEND_P2MULTI_ENUM,ESENDTYPE_SEND_P2MAP_ENUM,ESENDTYPE_SEND_P2CAMP_ENUM,ESENDTYPE_SEND_P2LINESVR_ENUM,ESENDTYPE_SEND_P2PLANESVR_ENUM}

ECMDTYPE_CMD_NULL_ENUM.name = "CMD_NULL"
ECMDTYPE_CMD_NULL_ENUM.index = 0
ECMDTYPE_CMD_NULL_ENUM.number = 0

ECMDTYPE_CMD_REGKEY_ENUM.name = "CMD_REGKEY"
ECMDTYPE_CMD_REGKEY_ENUM.index = 1
ECMDTYPE_CMD_REGKEY_ENUM.number = 1

ECMDTYPE_CMD_START_ENUM.name = "CMD_START"
ECMDTYPE_CMD_START_ENUM.index = 2
ECMDTYPE_CMD_START_ENUM.number = 2

ECMDTYPE_CMD_REGSERVER_ENUM.name = "CMD_REGSERVER"
ECMDTYPE_CMD_REGSERVER_ENUM.index = 3
ECMDTYPE_CMD_REGSERVER_ENUM.number = 3

ECMDTYPE_CMD_KEEPALIVE_ENUM.name = "CMD_KEEPALIVE"
ECMDTYPE_CMD_KEEPALIVE_ENUM.index = 4
ECMDTYPE_CMD_KEEPALIVE_ENUM.number = 4

ECMDTYPE.name = "ECmdType"
ECMDTYPE.full_name = ".ECmdType"
ECMDTYPE.values = {ECMDTYPE_CMD_NULL_ENUM,ECMDTYPE_CMD_REGKEY_ENUM,ECMDTYPE_CMD_START_ENUM,ECMDTYPE_CMD_REGSERVER_ENUM,ECMDTYPE_CMD_KEEPALIVE_ENUM}

EOPFLAG_FLAG_EXCLUDE_SELF_ENUM.name = "FLAG_EXCLUDE_SELF"
EOPFLAG_FLAG_EXCLUDE_SELF_ENUM.index = 0
EOPFLAG_FLAG_EXCLUDE_SELF_ENUM.number = 1

EOPFLAG.name = "EOpFlag"
EOPFLAG.full_name = ".EOpFlag"
EOPFLAG.values = {EOPFLAG_FLAG_EXCLUDE_SELF_ENUM}

MSGHEAD_MSGID_FIELD.name = "MsgID"
MSGHEAD_MSGID_FIELD.full_name = ".MsgHead.MsgID"
MSGHEAD_MSGID_FIELD.number = 1
MSGHEAD_MSGID_FIELD.index = 0
MSGHEAD_MSGID_FIELD.label = 1
MSGHEAD_MSGID_FIELD.has_default_value = true
MSGHEAD_MSGID_FIELD.default_value = 0
MSGHEAD_MSGID_FIELD.type = 5
MSGHEAD_MSGID_FIELD.cpp_type = 1

MSGHEAD_SRCENTITY_FIELD.name = "SrcEntity"
MSGHEAD_SRCENTITY_FIELD.full_name = ".MsgHead.SrcEntity"
MSGHEAD_SRCENTITY_FIELD.number = 2
MSGHEAD_SRCENTITY_FIELD.index = 1
MSGHEAD_SRCENTITY_FIELD.label = 1
MSGHEAD_SRCENTITY_FIELD.has_default_value = false
MSGHEAD_SRCENTITY_FIELD.default_value = nil
MSGHEAD_SRCENTITY_FIELD.enum_type = EMSGENTITY
MSGHEAD_SRCENTITY_FIELD.type = 14
MSGHEAD_SRCENTITY_FIELD.cpp_type = 8

MSGHEAD_SRCID_FIELD.name = "SrcID"
MSGHEAD_SRCID_FIELD.full_name = ".MsgHead.SrcID"
MSGHEAD_SRCID_FIELD.number = 3
MSGHEAD_SRCID_FIELD.index = 2
MSGHEAD_SRCID_FIELD.label = 1
MSGHEAD_SRCID_FIELD.has_default_value = false
MSGHEAD_SRCID_FIELD.default_value = 0
MSGHEAD_SRCID_FIELD.type = 3
MSGHEAD_SRCID_FIELD.cpp_type = 2

MSGHEAD_DSTENTITY_FIELD.name = "DstEntity"
MSGHEAD_DSTENTITY_FIELD.full_name = ".MsgHead.DstEntity"
MSGHEAD_DSTENTITY_FIELD.number = 4
MSGHEAD_DSTENTITY_FIELD.index = 3
MSGHEAD_DSTENTITY_FIELD.label = 1
MSGHEAD_DSTENTITY_FIELD.has_default_value = false
MSGHEAD_DSTENTITY_FIELD.default_value = nil
MSGHEAD_DSTENTITY_FIELD.enum_type = EMSGENTITY
MSGHEAD_DSTENTITY_FIELD.type = 14
MSGHEAD_DSTENTITY_FIELD.cpp_type = 8

MSGHEAD_DSTID_FIELD.name = "DstID"
MSGHEAD_DSTID_FIELD.full_name = ".MsgHead.DstID"
MSGHEAD_DSTID_FIELD.number = 5
MSGHEAD_DSTID_FIELD.index = 4
MSGHEAD_DSTID_FIELD.label = 1
MSGHEAD_DSTID_FIELD.has_default_value = false
MSGHEAD_DSTID_FIELD.default_value = 0
MSGHEAD_DSTID_FIELD.type = 3
MSGHEAD_DSTID_FIELD.cpp_type = 2

MSGHEAD_TIMESTAMP_FIELD.name = "TimeStamp"
MSGHEAD_TIMESTAMP_FIELD.full_name = ".MsgHead.TimeStamp"
MSGHEAD_TIMESTAMP_FIELD.number = 6
MSGHEAD_TIMESTAMP_FIELD.index = 5
MSGHEAD_TIMESTAMP_FIELD.label = 1
MSGHEAD_TIMESTAMP_FIELD.has_default_value = false
MSGHEAD_TIMESTAMP_FIELD.default_value = 0
MSGHEAD_TIMESTAMP_FIELD.type = 3
MSGHEAD_TIMESTAMP_FIELD.cpp_type = 2

MSGHEAD_SENDTYPE_FIELD.name = "SendType"
MSGHEAD_SENDTYPE_FIELD.full_name = ".MsgHead.SendType"
MSGHEAD_SENDTYPE_FIELD.number = 10
MSGHEAD_SENDTYPE_FIELD.index = 6
MSGHEAD_SENDTYPE_FIELD.label = 1
MSGHEAD_SENDTYPE_FIELD.has_default_value = false
MSGHEAD_SENDTYPE_FIELD.default_value = nil
MSGHEAD_SENDTYPE_FIELD.enum_type = ESENDTYPE
MSGHEAD_SENDTYPE_FIELD.type = 14
MSGHEAD_SENDTYPE_FIELD.cpp_type = 8

MSGHEAD_CMDTYPE_FIELD.name = "CmdType"
MSGHEAD_CMDTYPE_FIELD.full_name = ".MsgHead.CmdType"
MSGHEAD_CMDTYPE_FIELD.number = 11
MSGHEAD_CMDTYPE_FIELD.index = 7
MSGHEAD_CMDTYPE_FIELD.label = 1
MSGHEAD_CMDTYPE_FIELD.has_default_value = false
MSGHEAD_CMDTYPE_FIELD.default_value = nil
MSGHEAD_CMDTYPE_FIELD.enum_type = ECMDTYPE
MSGHEAD_CMDTYPE_FIELD.type = 14
MSGHEAD_CMDTYPE_FIELD.cpp_type = 8

MSGHEAD_OPFLAG_FIELD.name = "OpFlag"
MSGHEAD_OPFLAG_FIELD.full_name = ".MsgHead.OpFlag"
MSGHEAD_OPFLAG_FIELD.number = 12
MSGHEAD_OPFLAG_FIELD.index = 8
MSGHEAD_OPFLAG_FIELD.label = 1
MSGHEAD_OPFLAG_FIELD.has_default_value = false
MSGHEAD_OPFLAG_FIELD.default_value = nil
MSGHEAD_OPFLAG_FIELD.enum_type = EOPFLAG
MSGHEAD_OPFLAG_FIELD.type = 14
MSGHEAD_OPFLAG_FIELD.cpp_type = 8

MSGHEAD_ROLEID_FIELD.name = "RoleID"
MSGHEAD_ROLEID_FIELD.full_name = ".MsgHead.RoleID"
MSGHEAD_ROLEID_FIELD.number = 17
MSGHEAD_ROLEID_FIELD.index = 9
MSGHEAD_ROLEID_FIELD.label = 1
MSGHEAD_ROLEID_FIELD.has_default_value = false
MSGHEAD_ROLEID_FIELD.default_value = 0
MSGHEAD_ROLEID_FIELD.type = 3
MSGHEAD_ROLEID_FIELD.cpp_type = 2

MSGHEAD_MSGSEQ_FIELD.name = "MsgSeq"
MSGHEAD_MSGSEQ_FIELD.full_name = ".MsgHead.MsgSeq"
MSGHEAD_MSGSEQ_FIELD.number = 18
MSGHEAD_MSGSEQ_FIELD.index = 10
MSGHEAD_MSGSEQ_FIELD.label = 1
MSGHEAD_MSGSEQ_FIELD.has_default_value = false
MSGHEAD_MSGSEQ_FIELD.default_value = 0
MSGHEAD_MSGSEQ_FIELD.type = 5
MSGHEAD_MSGSEQ_FIELD.cpp_type = 1

MSGHEAD_OPTLENGTH_FIELD.name = "OptLength"
MSGHEAD_OPTLENGTH_FIELD.full_name = ".MsgHead.OptLength"
MSGHEAD_OPTLENGTH_FIELD.number = 19
MSGHEAD_OPTLENGTH_FIELD.index = 11
MSGHEAD_OPTLENGTH_FIELD.label = 1
MSGHEAD_OPTLENGTH_FIELD.has_default_value = true
MSGHEAD_OPTLENGTH_FIELD.default_value = 0
MSGHEAD_OPTLENGTH_FIELD.type = 13
MSGHEAD_OPTLENGTH_FIELD.cpp_type = 3

MSGHEAD_OPTION_FIELD.name = "Option"
MSGHEAD_OPTION_FIELD.full_name = ".MsgHead.Option"
MSGHEAD_OPTION_FIELD.number = 20
MSGHEAD_OPTION_FIELD.index = 12
MSGHEAD_OPTION_FIELD.label = 1
MSGHEAD_OPTION_FIELD.has_default_value = false
MSGHEAD_OPTION_FIELD.default_value = ""
MSGHEAD_OPTION_FIELD.type = 12
MSGHEAD_OPTION_FIELD.cpp_type = 9

MSGHEAD.name = "MsgHead"
MSGHEAD.full_name = ".MsgHead"
MSGHEAD.nested_types = {}
MSGHEAD.enum_types = {}
MSGHEAD.fields = {MSGHEAD_MSGID_FIELD, MSGHEAD_SRCENTITY_FIELD, MSGHEAD_SRCID_FIELD, MSGHEAD_DSTENTITY_FIELD, MSGHEAD_DSTID_FIELD, MSGHEAD_TIMESTAMP_FIELD, MSGHEAD_SENDTYPE_FIELD, MSGHEAD_CMDTYPE_FIELD, MSGHEAD_OPFLAG_FIELD, MSGHEAD_ROLEID_FIELD, MSGHEAD_MSGSEQ_FIELD, MSGHEAD_OPTLENGTH_FIELD, MSGHEAD_OPTION_FIELD}
MSGHEAD.is_extendable = false
MSGHEAD.extensions = {}

ENTITY_SYS_SVR = 1
ENTITY_OP_SVR = 2
ENTITY_PLANE_SVR = 6
ENTITY_WEB_SVR = 7
ENTITY_LOG_SVR = 10
ENTITY_PF_SVR = 11
ENTITY_GATE_SVR = 12
ENTITY_LINE_SVR = 13
ENTITY_GAME_CLT = 21
ENTITY_OP_CLT = 22

RELATION_BEGIN = 0
RELATION_C_S = 1
RELATION_S_S = 8
RELATION_END = 15

MODULE_CORE = 1
MODULE_WEAPON = 2
MODULE_EQUIP = 3
MODULE_LOGIN = 4
MODULE_PF = 5
MODULE_FIGHT = 6
MODULE_MAP = 7
MODULE_ROLE = 8
MODULE_JINGMAI = 9
MODULE_PVP = 10
MODULE_TASK = 11
MODULE_FUBEN = 12
MODULE_GANG = 13
MODULE_SYSMANAGER = 14
MODULE_ACTIVITY = 15
MODULE_TOP = 16
MODULE_SHOP = 17
MODULE_MATE = 18
MODULE_ARENA = 19
MODULE_NAKEDCAR = 20
MODULE_CAMP = 21
MODULE_MAIL = 22
MODULE_ITEM = 23
MODULE_PAINT = 24
MODULE_FESSION = 25
MODULE_HEROPOSTS = 26
MODULE_RUSHPARK = 27
MODULE_MISC = 28
MODULE_GM = 29
MODULE_FRIENDS = 30
MODULE_LANFIGHT = 31
MODULE_PVPROOM = 32
MODULE_END = 33

SEND_P2P = 0
SEND_P2MULTI = 1
SEND_P2MAP = 2
SEND_P2CAMP = 3
SEND_P2LINESVR = 10
SEND_P2PLANESVR = 11

CMD_NULL = 0
CMD_REGKEY = 1
CMD_START = 2
CMD_REGSERVER = 3
CMD_KEEPALIVE = 4

FLAG_EXCLUDE_SELF = 1

MsgHead = protobuf.Message(MSGHEAD)